package omm.domain;

public class User extends PersistentAttributes {
	private String username;
	private String passwordMD5;
	private String name;
	private String lastname;
	private String mail;
	private String page;
	private User boss;
	private Entity entity;
	private Branch branch;
	private Integer flags;

	public User(String username, String passwordMD5){
		this.username = username;
		this.passwordMD5 = passwordMD5;
	}
	
	public User(String username, String passwordMD5, String name,
			String lastname, String mail, String page, User boss,
			Entity entity, Branch branch,Integer flags) {
		
		this.username = username;
		this.passwordMD5 = passwordMD5;
		this.name = name;
		this.lastname = lastname;
		this.mail = mail;
		this.page = page;
		this.boss = boss;
		this.entity = entity;
		this.branch = branch;
		this.flags = flags;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPasswordMD5() {
		return passwordMD5;
	}

	public void setPasswordMD5(String passwordMD5) {
		this.passwordMD5 = passwordMD5;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Integer getFlags() {
		return flags;
	}

	public void setFlags(Integer flags) {
		this.flags = flags;
	}


	public String getLastname() {
		return lastname;
	}

	public void setLastname(String lastname) {
		this.lastname = lastname;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public String getPage() {
		return page;
	}

	public void setPage(String page) {
		this.page = page;
	}

	public User getBoss() {
		return boss;
	}

	public void setBoss(User boss) {
		this.boss = boss;
	}

	public Entity getEntity() {
		return entity;
	}

	public void setEntity(Entity entity) {
		this.entity = entity;
	}

	public Branch getBranch() {
		return branch;
	}

	public void setBranch(Branch branch) {
		this.branch = branch;
	}
	
	
}
